<?php

class Util
{
        public static function debug($mixed)
        {
                printf('<pre>%s</pre>', print_r($mixed, 1));
        }
        public static function readNode($node)
        {
                $contents = array ();
                foreach ($node->attributes () as $k => $v):
                        $contents[$k] = (string)$v;
                endforeach;
                return $contents;
        }
}

?>